import baseUrl from './base-url-config'

const { product: prefix } = baseUrl

export default {
  // 获取数据
  getUserDataAPI: {
    url: `${prefix}/edc/sys/user/query`,
    method: 'GET',
  },
  // 删除用户
  deleteUserDataAPI: {
    url: `${prefix}/edc/sys/user/delete`,
    method: 'DELETE',
  },
  // 修改用户
  updateUserDataAPI: {
    url: `${prefix}/edc/sys/user/update`,
    method: 'PUT',
  },
  // 角色名称下拉框
  getRolesNameAPI: {
    url: `${prefix}/edc/sys/role/query`,
    method: 'GET',
  },
  // 创建用户
  createUserDataAPI: {
    url: `${prefix}/edc/sys/user/create`,
    method: 'POST',
  },
  // 修改用户密码
  changePasswordAPI: {
    url: `${prefix}/edc/sys/user/updatePassword`,
    method: 'POST',
  },
  // 下载用户导入模版
  downloadUserTemplateAPI: {
    url: `${prefix}/edc/sys/user/downloadUserTemplate`,
    method: 'GET',
    responseType: 'blob',
  },
  // 导入用户数据
  importUserAPI: {
    url: `${prefix}/edc/sys/user/importUser`,
    method: 'POST',
  },
  // 导出用户信息
  exportUserAPI: {
    url: `${prefix}/edc/sys/user/export`,
    method: 'POST',
    responseType: 'blob',
  },
}
